<?php
include "ApiAgent.php";

$auth = new Authentication("U1234567", "ApiName", "SecurityWord");

$accountToRetrieve = "X567";

$apiAgent = ApiAgentFactory::createApiAgent(ApiAgentFactory::SOAP, $auth); 
$accountName = $apiAgent->accountName($accountToRetrieve);    

echo $accountName;
?> 